package io;

import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Scanner;

public class PWDemo {
    public static void main(String[] args) throws FileNotFoundException {
        PrintWriter pw = new PrintWriter("pw.txt");
        Scanner scan = new Scanner(System.in);
        while (true){
            String line = scan.nextLine();
            if ("exit".equals(line)){
                break;
            }
            pw.println(line);

        }
        pw.close();
    }

}
